package com.aos.erp.message.rpc;

import com.aos.erp.message.model.MTParamInfo;
import com.aos.erp.message.service.MTParamService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@Slf4j
@Api(tags = {"服务接口：消息模板参数接口"})
@RestController
@RequestMapping("/service/message/param")
public class RpcMessageTemplateParamController {

    @Resource
    private MTParamService mtParamService;

    @PostMapping("/listAll")
    @ApiOperation(value = "获取所有模板参数")
    public List<MTParamInfo> queryAll() {
        return mtParamService.queryAll();
    }

}
